#include<stdio.h>
#define N 1000
int main()
{
    int count1=0,count2=0,number=0;
    FILE *fp1;
    char model[N],name[N];
    char str;
    printf("name:");
   scanf("%s",&name);
    if((fp1=fopen(name,"r"))==NULL)
    {
        printf("ERROR");
        exit(0);
    }
    while(fgets(model,N,fp1))
    {
        while(model[number]!='\0')
        number++;
        while(1)
        {
            printf("%c\t",model[count1]);

                if((count1+1)%16==0||model[count1+1]=='\0')
            {
                printf("\n");
                while(1)
                {
                    printf("%x\t",model[count2]);
                    count2++;
                    if(count2%16==0||model[count2]=='\0')
                        {
                        printf("\n");
                        break;
                        }
                }
            }
            count1++;
            if(model[count1]=='\0') break;
        }
    }
    fclose(fp1);
    return 0;
}
